#ifndef CMD_LINE_H
#define CMD_LINE_H

#include <stdint.h>
#include "Scheduler.h"

class CmdLine : public Scheduler
{
public:
    CmdLine();
    virtual ~CmdLine();

   
    void append(char c);
    void schedule() override;
    void update() override;
    void cleanup()override;
private:

    volatile bool _update_flag;
    char _buf[8];
    volatile uint8_t _index;
};
#endif